Skip to content

[#879] Add airdrop campaign config module#899

Merged
realproject7 merged 1 commit intomainfrom
task/879-campaign-config
Apr 20, 2026
Merged

[#879] Add airdrop campaign config module#899
realproject7 merged 1 commit intomainfrom
task/879-campaign-config

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Summary

  • New lib/airdrop/config.ts with test/prod campaign configuration
  • Switchable via NEXT_PUBLIC_AIRDROP_MODE=test|prod env var (defaults to prod)
  • Test mode: 10 PLOT pool, low milestones ($7K/$10K/$50K), 3-day campaign
  • Prod mode: 50K PLOT pool, real milestones ($1M/$10M/$70M), 6-month campaign
  • Shared: point values (buy/referral/write/rate), streak boosts, streak gap

Files Changed

  • lib/airdrop/config.ts — new file

Test plan

  • npm run typecheck passes
  • Import AIRDROP_CONFIG — verify it returns prod config by default
  • Set NEXT_PUBLIC_AIRDROP_MODE=test — verify test config values

Fixes #879

🤖 Generated with Claude Code

Create lib/airdrop/config.ts with test/prod configuration switchable
via NEXT_PUBLIC_AIRDROP_MODE env var. Includes point values, streak
boosts, milestone tiers, pool amounts, and campaign dates.

Fixes #879

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
plotlink Ignored Ignored Apr 20, 2026 11:43pm

Request Review

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Summary

The new config module matches the issue scope and exports the expected shared/test/prod values behind the NEXT_PUBLIC_AIRDROP_MODE switch. Defaulting to prod when the env var is unset also matches the acceptance criteria.

Findings

  • No blocking findings.

Decision

Approving because the module is focused, the config shape is complete, and the mode switch behavior matches the ticket requirements.

@realproject7 realproject7 merged commit 1d1e710 into main Apr 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Airdrop P1] Add campaign config module

2 participants